package com.tengfei.log;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

/**
 * @Description:
 * @author: ten_fei
 *
 * @date: 2021-07-09 16:57
 */
public class AfterLog implements AfterReturningAdvice {

    // returnValue: 返回值

    @Override
    public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
        System.out.println("执行了"+method.getName()+"返回结果为:"+returnValue);
    }
}
